{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "cd6c2bf5",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Author:ZengQiaoyi\n",
    "user_data = \"zengqiaoyi\"\n",
    "password_data = \"123456\"\n",
    "\n",
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "\n",
    "    username = input(\"请输入您的账号：\")\n",
    "    password = input(\"请输入您的密码：\")\n",
    "\n",
    "    if user_data == username:\n",
    "        if password_data == password:\n",
    "\n",
    "            print(\"欢迎%s登录课表系统使用~\"%(username))\n",
    "\n",
    "            break\n",
    "        else:\n",
    "            if count == 0:\n",
    "                print(\"您已输入三次错误账号或密码，还不对！笨死了~~~，别输了，5分钟后再来~~\")\n",
    "                break\n",
    "            else:\n",
    "                print(\"您输入的账号或密码不正确，请重新输入，您还有\",count,\"次机会~加油~\")\n",
    "    else:\n",
    "        if count == 0:\n",
    "            print(\"您已输入三次错误账号或密码，还不对！笨死了~~~，别输了，5分钟后再来~~\")\n",
    "            break\n",
    "        else:\n",
    "            print(\"您输入的账号或密码不正确，请重新输入，您还有\",count,\"次机会~加油~\")\n",
    "\n",
    "print(\"秋季课程表\")\n",
    "import datetime\n",
    "time = datetime.datetime.today().weekday()\n",
    "week_time = int(time)\n",
    "print(\"today:\"),print(week_time)\n",
    "if week_time==1:\n",
    "    print(\"3-5 python语言\");print(\"12-14 毛概理论\")\n",
    "elif week_time==2:\n",
    "    print(\"4-5 广告学概论\");print(\"8-10 网站运营与管理\");print(\"12-13 大学英语\")\n",
    "elif week_time==3:\n",
    "    print(\"1-2 排球\");print(\"12-14 创业实践\");\n",
    "elif week_time==4:\n",
    "    print(\"1-2 毛概实践\");print(\"4-5 大学英语\");print(\"8-9 广告文案\")\n",
    "elif week_time==5:\n",
    "    print(\"没课啦~~~~~~\")\n",
    "else:\n",
    "    print(\"周末\");print(\"HAPPY WEEKEND!\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3b7997cc",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "78ac21ab",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
